package DecoratorPattern;

import Model.Book;

// 罚款装饰器抽象类
public abstract class FineDecorator extends Book {
    protected Book book;

    public FineDecorator(Book book) {
        super(book.getTitle(), book.getAuthor(), book.getIsbn(), book.getGenre(), book.getPageCount(), book.getPrice(), book.getPublicationDate(), book.getBaseFine());
        this.book = book;
    }

    @Override
    public abstract double calculateFine();
}
